// 套餐管理
import request from '@/router/axios'

export function setMealFetchList(query) {
  return request({
    url: '/eims/setmeal/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/eims/setmeal',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/eims/setmeal/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/eims/setmeal/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/eims/setmeal',
    method: 'put',
    data: obj
  })
}

//审核
export function editAuditStatus(id) {
  return request({
    url: '/eims/setmeal/editAuditStatus/' + id,
    method: 'get'
  })
}

//反审核
export function notAuditStatus(id) {
  return request({
    url: '/eims/setmeal/editNotAuditStatus/' + id,
    method: 'get'
  })
}

//  查询套餐
export function getUsableMealList(query){
  return request({
    url: '/eims/setmeal/getInfoExactMatchSetMeal',
    method: 'get',
    params: query
  })
}